﻿@model KRM.Core.tblTradeCustomerOrderReturn

<input type="hidden" name="orderid" value="@ViewBag.OrderId"/>
<input type="hidden" name="OrderItemID" value="@ViewBag.orderitemid"/>
<div class="row-fluid">
    <div class="span2">Primary Reason</div>
    <div class="span3">
        @Html.DropDownList("PrimaryReasonCode", null, new { @class = "input-block-level" })
    </div>
    <div class="span4 text-right">Refund Amount(*)</div>
    <div class="span3">
        <input type="text" class="input-block-level" name="refundamount" required="required" id="refundamount" value="@(Model.ID > 0 ? ((Decimal)Model.RefundAmount).ToString("#.##") : "")" />
    </div>
</div>
<div class="row-fluid">
    <div class="span2">Comment(*)</div>
    <div class="span10">
        <textarea class="input-block-level" rows="3" name="comments" required="required">@Model.Comments</textarea>
    </div>
</div>
<div class="row-fluid">
    <div class="span6">
        @(Model.ID > 0 ? "Refunded by : " + Model.UserName : "")
    </div>
    <div class="span6 text-right">
        <input type="submit" class="btn btn-primary w100" value="Give Refund" @(Model.ID > 0 ? "disabled=disabled" : "") />
        <input type="reset" class="btn btn-danger w100" value="Clear" style="margin: 0 10px" />
        <input type="button" class="btn w100" value="Cancel" onclick="window.close();" />
    </div>
</div>
